<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<table
	class="am-table am-table-bordered am-table-striped am-table-hover am-table-centered">
	<thead>
		<tr>
			<th width="10%">序号</th>
			<th width="10%">用户名</th>
			<th width="15%">电话</th>
			<th width="15%">邮箱</th>
			<th width="20%">注册时间</th>
			<th width="30%">操作</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${page.records }" var="user" varStatus="status">
			<fmt:formatDate value="${user.updateTime}"
				pattern="yyyy-MM-dd HH:mm:ss" var="updateTime" />
			<tr class="select">
				<td>${status.index + 1}</td>
				<td>${user.userName }</td>
				<td>${user.phonenum }</td>
				<td>${user.email }</td>
				<td>${updateTime }</td>
				<td><div class="am-btn-group am-btn-group-xs">
						<button
							class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"
							onclick="usercont.deleteUser('${user.sqlId }','${user.userName }')">
							<span class="am-icon-pencil-square-o"></span> 删除
						</button>
					</div></td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<%@ include file="/WEB-INF/jsp/manage/page.jsp"%>